from collections import Counter
from datetime import datetime
import pandas as pd
import matplotlib.pyplot as plt
covid19=pd.read_csv('B:/数据处理集/archive/covid_19_data.csv')


counters={ i:Counter(covid19[i].tolist()) for i in covid19.columns}



def change_str_date(date_string):
    return datetime.strptime(date_string, "%m/%d/%Y").date()

Province_State=covid19['Province/State'].tolist()
ObservationDate=covid19['ObservationDate'].to_dict()
Country=covid19['Country/Region'].to_dict()
last_Update=covid19['Last Update'].to_dict()
Confirmed=covid19['Confirmed'].to_dict()
Deaths=covid19['Deaths'].to_dict()
Recovered=covid19['Recovered'].to_dict()
counter_Province_State=Counter(Province_State)

for k,v in ObservationDate.items():
    print(k,v)




